﻿@{
    ViewBag.Title = "MKAdmin后台管理登录";
    Layout = "/Views/Shared/_Layout.cshtml";
}

@using MKAdmin.DTO.Web.Login

@model LoginInfoParameter

@section Styles {
    @Styles.Render(PageCssFilesConfig.Login)
}

<div class="m-login-bg">
    <div class="m-login">
        <h3><img src="~/Images/logo.png" alt="Alternate Text" /></h3>
        <div class="m-login-warp">
            @using (Html.BeginForm("index", "login", FormMethod.Post, new { @id = "frmLogin", @class = "layui-form" }))
            {
                @Html.AntiForgeryToken()
                <div class="layui-form-item">
                    <input type="text" name="OperatorNo" placeholder="账号" autocomplete="off" class="layui-input User_login_btn" value="@(Model.OperatorNo)">
                </div>
                <div class="layui-form-item">
                    <input type="password" name="OperatorPwd" placeholder="密码" autocomplete="off" class="layui-input User_login_btn" value="@(Model.OperatorPwd)">
                </div>
                @*<div class="layui-form-item">
                        <div class="layui-inline">
                            <input type="text" name="code" required lay-verify="required" placeholder="验证码" autocomplete="off" class="layui-input">
                        </div>
                        <div class="layui-inline">
                            <img class="verifyImg" src="/content/layuiAdmin/images/login/yzm.jpg" />
                        </div>
                    </div>*@
                <p class="tip prompt zf-logo-forget-tip-erro">
                    @Html.ValidationMessage(Model.KeyValidateMessage)
                </p>
                <div class="layui-form-item zf-logo-forget">
                    <div class="layui-inline ">
                        <input type="checkbox" name="IsRemember" id="IsRemember" title="记住账号密码" lay-skin="primary" lay-filter="remember" @Html.Raw(Model.IsRemember ? "checked" : "") value="@(Model.IsRemember?"true":"")">
                    </div>

                    @*<div class="layui-inline pull-right">
                            <span class="zf-logo-forget-blue">忘记密码？</span>
                        </div>*@
                </div>
                <div style="margin-top: -19px;margin-bottom: 8px;color: grey;">
                    测试账号:test 密码:123456
                </div>
                <div class="layui-form-item m-login-btn">
                    <div class="layui-inline">
                        <button class="layui-btn layui-btn-normal" lay-submit lay-filter="login">登录</button>
                    </div>
                    @*<div class="layui-inline">
                            <button type="reset" class="layui-btn layui-btn-primary">取消</button>
                        </div>*@
                </div>
                <div class="Login_tip">为保证最佳显示效果，请下载最新版谷歌 <a href="https://www.google.cn/chrome/" target="_blank">Chrome浏览器</a></div>
            }
        </div>
    </div>
</div>

@section Scripts {
    @Scripts.Render(PageJsFilesConfig.Login)
}
